package com.shengyuan.manage_os.old.ying.boce.jsy;

import com.shengyuan.manage_os.old.ying.erpm.MainApplication;


public class PT_yhmc   implements java.io.Serializable {
//	public String v_yhdm="";
//	public String v_xm="test";
//	public int I_DUTYID;
//	public int i_bmdm;
//	public String c_sfyx;
//	public int State ;
	public int ID;
	public String UserName;
	public String Department;
	public String JiaoSe;
	public int Type;
	public int expdate;
	public String Password;
	
	private Boolean LogOut ;
	private final String LOGOUTKEY = "LOGOUTKEY";
	public Boolean getLogOut() {
		String s = MainApplication.pShareUtil.ReadParam(LOGOUTKEY);
		if (s.equals("")) {//第一次
			return true; 
		}else {
			LogOut = Boolean.parseBoolean(s);
			return LogOut;
		}
	}

	public void setLogOut(Boolean logOut) {
		LogOut = logOut;
		MainApplication.pShareUtil.WriteParam(LOGOUTKEY, logOut.toString());
	}

	public String ZhuangTai() {
		if (Type==1) {
			return "离线运行";
		}else {
			return "在线运行";
		}
	}
}
